import { get, post } from '../../utils/request';

export function getIndexListAllApi() {
    return get('/index');
}

export function recommend() {
    return get('/index/recommend');
}
export function getOpenid(obj) {
    return get('/member/H5openid', obj);
}
export function thirdLogin(obj) {
    return post('/member/third/login', obj);
}
export function userinfo() {
    return get('/wechat/rest/api/v6.0/userinfo');
}

export function thirdSina(obj) {
    return post('/member/third/sina', obj);
}
//密码登录
export function loginAPi(obj) {
    return post('login', obj);
}
//登录成功后调购物车接口
export function goCartAPi() {
    return post('/cart/sync');
}
